<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport"
        content="width=device-width, initial-scale=1.0">
<meta name="HandheldFriendly" content="true">
<title>Sample</title>
<style>
body {
	font-family: 微软雅黑, 'Microsoft YaHei', \5FAE\8F6F\96C5\9ED1, sans-serif;
}
</style>
</head>
<body>
<script type="text/javascript">
// 创建同步数据库
try{
   var db = openDatabaseSync('mydb', '1.0',
                                   '我的第一个客户端数据库',
                                   2 * 1024 * 1024); 
}catch(err){
   throw new Error(err.message?err.message:err.toString());
}
</script>
</body>
</html>
